package runner;


import logic.GameStarter;
import view.UserMenu;


public class TimeLineManager {

	private void gameStarts(int state) {
		GameStarter gameStarter= new GameStarter();
		gameStarter.startTheGame(state);
		
	}

	private int initialiseGameState(int passedData) {
		// TODO Here we initiate the players, there was no time to expand the stubs
		return 2;
	}
	// TODO Here we initiate the players, there was no time to expand the stubs
	private int getGameStateFromUser(int numbersOfUsers, int minimalNumberCardsForUser) {
		return 2;
	}

	private boolean doesUserDecideToPlay(int decision) {
		if(decision == 1){
			return true;
		}
		else {
			return false;
		}
	}

	public int getGameDecisionFromUser(String gammerDecision) {
		PlayingDecision playDecision = new PlayingDecision();
		return playDecision.playningGammerDecision(gammerDecision);
	}

	public void Run() {
		UserMenu  userMenu = new UserMenu();
		
		int decision = userMenu.printMenu();
		
		if(doesUserDecideToPlay(decision) == true)
		{
			int numbersOfUsers = 2;
			int minimalNumberCardsForUser = 4;
			int passedData = getGameStateFromUser(numbersOfUsers, minimalNumberCardsForUser);
			
			int state = initialiseGameState(passedData);
			
			gameStarts(state);
		}
		
	}


}
